info_tuple=("zhangsan","zhangsan",18,29,1.2)
print(info_tuple[0])
print(info_tuple.index("zhangsan"))#索引
print(info_tuple.count("zhangsan"))#计数
print(len(info_tuple))#包含元素个数

print('-'*60)
# 元祖遍历,其实就是行变列
for my_info in info_tuple:
    print(my_info)

info_tuple=("小明",21,1.89)
print("%s年龄是 %d 身高是 %.2f" % info_tuple)
info_str="%s年龄是 %d 身高是 %.2f" % info_tuple
print(info_str)

t1=(1,2,3)
t2=print(list(t1))

t3=tuple(t2)
print(t3)

